<?php

namespace app\mobile\controller;
use app\mobile\model\InfoModel;
use app\mobile\model\TypeModel;

class Website extends Base {

    public function index() {
        $infoModel = new InfoModel();
        $webList = $infoModel->getList(15);
        return $this->fetch('index',
            [
                'webList' => $webList
            ]
        );
    }

    public function body($id) {
        $infoModel = new InfoModel();
        $info = $infoModel->getOne(['id' => $id]);

//        $this->_webNavList();
//        $this->_caseCommonList();

        return $this->fetch('body', [
            'info' => $info,
        ]);
    }

}
